﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ESoft.Core.Utils.Extensions
{
    public static class GuidExtensions
    {
        public static string ToStringN(this Guid guid)
        {
            return _ToString(guid, "N");
        }
        public static string ToStringD(this Guid guid)
        {
            return _ToString(guid, "D");
        }
        public static string ToStringB(this Guid guid)
        {
            return _ToString(guid, "B");
        }
        public static string ToStringP(this Guid guid)
        {
            return _ToString(guid, "P");
        }
        public static string ToStringX(this Guid guid)
        {
            return _ToString(guid,"X");
        }
        private static string _ToString(Guid guid,string format)
        {
            return guid.ToString(format);
        }

        //public static string GetUUID(this Guid)
    }
}
